<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width:1000px;
            height: 1000px;
            background-image: url(image/img1.jpg);
            /*1背景图片不平铺*/
            /* background-repeat: no-repeat; */
            /* 2默认情况下背景是平铺的 */
            /* background-repeat: repeat; */
            /* 3向x轴平铺 */
            /* background-repeat: repeat-x; */
            /* 4象y轴平铺 */
            background-repeat: repeat-y; 
            /* 页面元素可以添加背景颜色，也可以添加背景图片，背景图片会压住背景颜色 */
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>